const fs = require('fs');
const path = require('path');
var tools = require('../../../libs/tools');
var config = require(tools.rootPath + 'config');
var { connection, pool, model } = require(tools.rootPath + 'libs/model');

var controller = require(tools.rootPath + 'libs/controller.js');


module.exports = class extends controller {
    constructor() {
        super();
    }
    async index(req, res) {
        //let d = await model.select("select itemid,title from article where itemid=1", [], 60);
        //console.log(d);
        let d = await model.column("select itemid from article", [], 60);
        console.log(d);
        res.send('ok');
    }

}